getApplicationContext().getFilesDir().getAbsolutePath() + "/" + "save"
Environment.DIRECTORY_PICTURES + "/" + "save"
File myCaptureFile = null; try { // 已挂载 File pic = ctx.getExternalFilesDir(Environment.DIRECTORY_PICTURES + "/save"); if (!pic.exists()) { pic.mkdirs(); } myCaptureFile = File.createTempFile("utc", ".jpg", pic); if (!myCaptureFile.exists()) { myCaptureFile.createNewFile(); } mCurrentPhotoPath = myCaptureFile.getAbsolutePath(); Log.i(TAG, "=====camera path:" + mCurrentPhotoPath); } catch (IOException e) { e.printStackTrace(); }